package com.xihuanjun.sdk.entity;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.xihuanjun.sdk.enums.BPAddressTypeEnum;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * Copyright (C), 2024-09-02
 * FileName: BPAddresse
 * Author:   溪浣君
 * Date:     2024-09-02 10:05
 * Description: 业务伙伴地址，CRD1
 */
@Data
@ToString
@NoArgsConstructor
@JsonAutoDetect(fieldVisibility= JsonAutoDetect.Visibility.ANY,getterVisibility= JsonAutoDetect.Visibility.NONE)
public class BPAddresse {

    /**
     * 地址名，同类型下不可重复
     * 重复报错：This entry already exists in the following tables (ODBC -2035)
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String AddressName;

    /**
     * 联系人
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String AddressName2;

    /**
     * 联系人电话
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String AddressName3;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String BuildingFloorRoom;

    /**
     * 绑定的业务伙伴代码
     */
    private String BPCode;

    /**
     * bo_ShipTo\bo_BillTo
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BPAddressTypeEnum AddressType;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer RowNum;


    public BPAddresse(String BPCode) {
        this.BPCode = BPCode;
    }
}
